'use strict';

const Controller = require('egg').Controller;

class SearchController extends Controller {
    async search() {
        const { ctx, service } = this;
        const { keyword, order_name,order,page_num, page_size } = ctx.query
        const result = await service.search.getSearch(keyword, order_name, order,page_num, page_size);
        ctx.cc(result);
    }
}

module.exports = SearchController;
